package theUseOfArrays;

/**
 * @ClassName NullPointerException
 * @Description 空指针异常
 * @Author 李明忠
 * @Date 2025/5/24 19:14
 * @Version 1.0
 */
public class NullPointerException {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5};
        arr = null;
        int tmp = arr[1];//运行时出异常
    }
}
